﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="list.aspx.cs" Inherits="admin_message_list"  MasterPageFile="~/admin/MasterPage.master"  %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Import Namespace="System.Data" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<h1 class="admin-position">当前位置 -> 技术支持 -> 留言查看</h1>
<form id="Form1" method="post" runat="server">
<table cellpadding="0" cellspacing="0" class="admin-list-table">
    <thead>
        <tr>
            <th style=" width:40px; height: 25px;"></th>
            <th style="height: 25px">姓名</th>
            <th style="height:25px;">E-mail</th>
            <th style="height: 25px">电话</th>
            <th style="height: 25px">单位</th>
            <th style="height: 25px">内容</th>
            <th style="height: 25px">提交ip</th>
            <th style="height: 25px">提交时间</th>
        </tr>
    </thead>
    <tbody>
        <asp:Repeater ID="repeater1" runat="server">
        <ItemTemplate>
        <tr>
            <td style=" width:40px; text-align:center;"><asp:CheckBox ID="cdDelete" ToolTip='<%#Eval("id") %>'  runat="server"/><asp:HiddenField Value='<%#Eval("id") %>' ID="newsid" runat="server" /></td> </td>
            <td><%# ((DataRowView)Container.DataItem)["name"].ToString().Trim()%></td>
            <td style="padding:3px;"><%# ((DataRowView)Container.DataItem)["email"].ToString().Trim() %></td>
            <td><%# ((DataRowView)Container.DataItem)["mobile"].ToString().Trim()%></td>
            <td><%# (((DataRowView)Container.DataItem)["company"]).ToString()%></td>
            <td style=" width:300px; padding:5px;"><%# ((DataRowView)Container.DataItem)["message"].ToString().Trim()%></td>
            <td><%# ((DataRowView)Container.DataItem)["postip"].ToString().Trim()%></td>
            <td><%# ((DataRowView)Container.DataItem)["posttime"].ToString().Trim()%></td>
        </tr>
        </ItemTemplate>
        </asp:Repeater>
    </tbody>
    
 </table>
 <table width="99%" class="admin-pageinfo">
    <tr>
        <td><select name="mode"><option value="1">批量删除</option></select><input type="button" value="提交" id="Button1" onserverclick="Button1_ServerClick" runat="server" /></td>
        <td class="page" align="right"><webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged"></webdiyer:AspNetPager></td>
   </tr>
 </table>
</form>
</asp:Content>
